package com.prik.adapter;

import java.util.ArrayList;

/**
 * 测试类
 */
public class Test {

    public static void main(String[] args) {

        ArrayList<IUserInfo> userList = new ArrayList<>();
        OuterUserInfo outerUserInfo = new OuterUserInfo(new OuterUser());
        UserInfo userInfo = new UserInfo();
        userList.add(outerUserInfo);
        userList.add(userInfo);


        for (IUserInfo iUserInfo : userList) {
            System.out.println(iUserInfo.getUserName());
        }


    }
}
